Skip to content

Bump 2.2.5#400

Merged
robotpilot merged 5 commits into
jazzyfrom
main
Jun 4, 2025
Merged

Bump 2.2.5#400
robotpilot merged 5 commits into
jazzyfrom
main

Conversation

@robotpilot

Copy link
Copy Markdown
Member

No description provided.

ijnek and others added 5 commits May 22, 2025 03:04
Signed-off-by: ijnek <kenjibrameld@gmail.com>
use modern cmake to do target-based installation
Signed-off-by: Wonho Yun <ywh@robotis.com>
Signed-off-by: Wonho Yun <ywh@robotis.com>
Deprecate ament_include_dependency usage in CMakeLists.txt
@robotpilot robotpilot self-assigned this Jun 4, 2025

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hello @robotpilot, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

Summary of Changes

Hello! Gemini here, providing a summary of this pull request. This PR primarily focuses on bumping the version of the dynamixel_workbench and dynamixel_workbench_toolbox packages to 2.2.5. This version update incorporates changes that remove an unused rclcpp dependency and refactor the CMakeLists.txt for dynamixel_workbench_toolbox to use more modern CMake and ament practices, specifically addressing the deprecation of ament_target_dependencies in newer ROS 2 distributions like Kilted. Additionally, the changelog files are updated, a minor typo is corrected, and the maintainer information in library.properties is updated.

Highlights

  • Version Bump: The version of both dynamixel_workbench and dynamixel_workbench_toolbox packages has been updated from 2.2.4 to 2.2.5 in their respective package.xml files and library.properties.
  • Dependency Removal: An unused dependency on rclcpp has been removed from the dynamixel_workbench_toolbox package's CMakeLists.txt and package.xml.
  • CMake Modernization: The CMakeLists.txt for dynamixel_workbench_toolbox has been updated to use modern CMake commands like target_include_directories and target_link_libraries instead of the deprecated ament_target_dependencies. It also updates the installation and export directives using ament_export_targets.
  • Changelog Updates: New entries for version 2.2.5 have been added to the CHANGELOG.rst files for both packages, documenting the removal of the rclcpp dependency and the update related to ament_target_dependencies. A typo (Contributoers -> Contributors) was also fixed in the changelogs.
  • Maintainer Update: The maintainer email in dynamixel_workbench_toolbox/library.properties has been updated.

Changelog

Click here to see the changelog
  • dynamixel_workbench/CHANGELOG.rst
    • Added entry for version 2.2.5 (2025-06-04)
    • Remove unused rclcpp dependency
    • Remove ament_target_dependencies (deprecated in ROS 2 kilted)
    • Fixed typo 'Contributoers' to 'Contributors'
  • dynamixel_workbench/package.xml
    • Updated version from 2.2.4 to 2.2.5
  • dynamixel_workbench_toolbox/CHANGELOG.rst
    • Added entry for version 2.2.5 (2025-06-04)
    • Remove unused rclcpp dependency
    • Remove ament_target_dependencies (deprecated in ROS 2 kilted)
    • Fixed typo 'Contributoers' to 'Contributors'
  • dynamixel_workbench_toolbox/CMakeLists.txt
    • Removed find_package(rclcpp REQUIRED)
    • Removed deprecated include_directories and set(dependencies_lib) including rclcpp
    • Replaced ament_target_dependencies with target_include_directories and target_link_libraries
    • Added EXPORT to install target
    • Changed include install destination to include/${PROJECT_NAME}
    • Removed deprecated ament_export_include_directories, ament_export_dependencies(rclcpp), and ament_export_libraries
    • Added ament_export_targets
  • dynamixel_workbench_toolbox/library.properties
    • Updated version from 2.2.4 to 2.2.5
    • Updated maintainer email
  • dynamixel_workbench_toolbox/package.xml
    • Updated version from 2.2.4 to 2.2.5
    • Removed <depend>rclcpp</depend>
Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point in your pull request via creating an issue comment (i.e. comment on the pull request page) using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in issue comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist is currently in preview and may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments to provide feedback.

You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension.


A version bumps with grace,
Dependencies find their place.
CMake lists refined,
Old ways left behind,
For a faster, cleaner space.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This PR primarily bumps the version to 2.2.5 and includes several important maintenance updates for the dynamixel_workbench_toolbox package.
Key changes include:

  • Removing an unused rclcpp dependency.
  • Updating the CMakeLists.txt to use modern, target-based ament_cmake functions, replacing deprecated ones. This is a great improvement for maintainability and adherence to current ROS 2 best practices!
  • Fixing typos in the CHANGELOG.rst files (e.g., "Contributoers" to "Contributors").

The CMake modernization is well-executed for the most part. However, I've found a critical issue related to the installation and export of header files that could affect downstream packages. Please see the specific comments on dynamixel_workbench_toolbox/CMakeLists.txt.

Summary of Findings

  • Header Installation and Export: Critical issue identified in dynamixel_workbench_toolbox/CMakeLists.txt regarding the installation path of header files and the exported include directories. This can lead to downstream packages being unable to find headers or using non-standard include paths.
  • CMake Modernization: The updates to use modern, target-based ament_cmake functions are a significant improvement for maintainability and adherence to ROS 2 best practices. This was noted but not commented on directly as it's a positive change.
  • Dependency Cleanup: Removal of the unused rclcpp dependency is a good cleanup step. This was noted but not commented on directly as it's a positive change.
  • Changelog Typos: Typos (e.g., "Contributoers") were fixed in the CHANGELOG.rst files. This improves readability. This was noted but not commented on directly as it's a positive change.

Merge Readiness

The pull request makes valuable updates, especially the CMake modernization. However, due to a critical issue identified in the header file installation and export mechanism in dynamixel_workbench_toolbox/CMakeLists.txt, I recommend that these changes not be merged until this issue is resolved. Addressing this will ensure that downstream packages can correctly locate and use the headers from this library. As an AI, I am not authorized to approve pull requests, so please ensure further review and approval from team members after the suggested changes are made.

ament_target_dependencies(${LIB_NAME} ${dependencies_lib})
target_include_directories(${LIB_NAME} PUBLIC
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>
$<INSTALL_INTERFACE:include/${PROJECT_NAME}>

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

critical

To align with the standard ROS include pattern (#include <package_name/header.h>) and ensure correct header discovery by downstream packages, this INSTALL_INTERFACE should be include.

This change is related to the header installation method (see comment on lines 63-65). When headers are installed to PREFIX/include/package_name/header.h, downstream packages should add PREFIX/include to their include search paths. This INSTALL_INTERFACE directive configures that for consumers of this target.

  $<INSTALL_INTERFACE:include>

Comment on lines 63 to 65
install(DIRECTORY include/
DESTINATION include/
DESTINATION include/${PROJECT_NAME}
)

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

critical

This installation rule for header files, combined with the INSTALL_INTERFACE on line 45, appears to lead to incorrect header paths for downstream packages.

Given the source structure where headers are located at include/${PROJECT_NAME}/header.h (e.g., include/dynamixel_workbench_toolbox/dynamixel_driver.h):

  1. The current install(DIRECTORY include/ DESTINATION include/${PROJECT_NAME}) copies the contents of the source include/ directory (which includes the dynamixel_workbench_toolbox/ subdirectory itself) into PREFIX/include/${PROJECT_NAME}/. This results in a nested path like PREFIX/include/dynamixel_workbench_toolbox/dynamixel_workbench_toolbox/header.h.
  2. The standard ROS convention is for headers to be installed at PREFIX/include/package_name/header.h and included via #include <package_name/header.h>.

To achieve this, the headers from the source include/${PROJECT_NAME}/ directory should be installed directly into the PREFIX/include/${PROJECT_NAME}/ destination.

Could you please adjust this installation rule? Also, ensure the INSTALL_INTERFACE on line 45 is set to include (as per separate comment).

install(
  DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/include/${PROJECT_NAME}/
  DESTINATION include/${PROJECT_NAME}
  FILES_MATCHING PATTERN "*.h"
)

@robotpilot robotpilot merged commit 879e55b into jazzy Jun 4, 2025
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants